import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import 'package:vape_xe/services/services.dart';
import 'package:vape_xe/utils/utils.dart';

class WithdrawConfirmController extends GetxController {
  /// 响应式成员变量
  final params = <String, dynamic>{}.obs;

  WithdrawConfirmController(Map<String, dynamic> aa) {
    params.value = aa;
  }

  Future<void> submit() async {
    Loading.show();
    Request().post('/userCashRecord/applyCash', params).then((result) {
      EventService.to.sendMessage(EventService.EventRefresh);
      Navigator.pop(Get.context!, result['result']);
    });
  }
}
